package com.iotstudio.embeddedcloudplatform.dao;

import com.iotstudio.embeddedcloudplatform.POJO.DO.Permission;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(String id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    /**
     * 根据用户id查询所有权限
     * @param userId 用户id
     * @return 权限列表
     */
    List<Permission> listByUserId(String userId);
}